﻿using System.Linq.Expressions;

namespace Architecture.Repository
{
    public interface IRepository<T> where T : class, new()
    {
        Task<int> AddAsync(T t);
        Task<int> Update(T t);
        Task<T> GetModelAsync(int id);
        Task<List<T>> GetAllAsync();
        Task<List<T>> GetAsync(Expression<Func<T, bool>> expre);
    }
}